package com.pactera.mavenweb.daoimpl;

import org.springframework.stereotype.Service;

import com.pactera.mavenweb.dao.IGenericDao;
import com.pactera.mavenweb.dao.UserRoleDao;
import com.pactera.mavenweb.entity.UserRole;

/**
 * UserRoleDao实现类
 * @author SteveXIE
 *
 */
@Service("userRoleDao")
public class UserRoleDaoImpl extends GenericDaoImpl<UserRole> implements
	UserRoleDao {
	
	public UserRoleDaoImpl() {
		super(UserRole.class);
	}

//	@Override
	@SuppressWarnings("unchecked")
	public int saveUserRole(UserRole userRole) {
		try {
			this.insert(userRole);
			return 0;
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
}